import request from "@/utils/request";
import { serverBaseURL } from '@/constant/system.js'
// 请求地址前缀(微服务配置中的服务名称)
const baseURL = serverBaseURL

// 分页查询
export function selectByPage(data) {
  return request({
    url: baseURL+"/tradeManage/selectByPage",
    method: "post",
    data,
  });
}
export function getTradeByID(data) {
  return request({
    url: baseURL+"/tradeManage/getByID",
    method: "post",
    data,
  });
}
export function addTrade(data) {
  return request({
    url: baseURL+"/tradeManage/add",
    method: "post",
    data,
  });
}
export function updateTrade(data) {
  return request({
    url: baseURL+"/tradeManage/update",
    method: "post",
    data,
  });
}
export function deleteTrade(data){
  return request({
    url: baseURL+"/tradeManage/delete",
    method: "post",
    data,
  });
}

